FROM ubuntu:22.04

LABEL maintainer="Zheng Qijun <zhengqijun0121@qq.com>"

ARG DEBIAN_FRONTEND=noninteractive

RUN apt update && apt install -y --no-install-recommends ca-certificates && \
    sed -i 's/http:\/\/security.ubuntu.com\|http:\/\/archive.ubuntu.com/https:\/\/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list && \
    apt update && apt install -y --no-install-recommends make cmake git pkg-config libtool libtool-bin build-essential \
    	zip unzip gettext wget curl && \
    rm -rf /var/lib/apt/lists/* && \
    echo 'root:111111' | chpasswd && \
    git config --global user.name 'zhengqijun' && \
    git config --global user.email 'zhengqijun0121@qq.com' && \
    git clone https://gitee.com/zhengqijun/neovim ~/Workspace/neovim

#    make CMAKE_BUILD_TYPE=Release CMAKE_INSTALL_PREFIX=/usr/local

ENV SHELL /bin/bash
ENV HOME /root/Workspace/neovim
ENV USER root
ENV USERNAME root

WORKDIR $HOME

# ENTRYPOINT ["/bin/bash"]

EXPOSE 22

# EOF

